#!/bin/bash
# Zaitan Module - BrOffice Install
# Zaitan Team <http://code.google.com/p/zaitan/>

RMOD_ENGINE='2.1'
RMOD_CATEGORY='Software'
RMOD_SUBCATEGORY='Office'
RMOD_NAME='BrOffice'
RMOD_AUTHOR='Zaitan Team'
RMOD_VERSION='2.2'
RMOD_DESCRIPTION='Installs BrOffice'
RMOD_UPDATE_URL='http://code.google.com/p/zaitan/'

# install BrOffice


echo Running $RMOD_NAME...
#/usr/lib/zaitan/modulo/mod-checkInstall

apt-get update
apt-get -y install libglitz1

cd /usr/share/zaitan

wget -c ftp://www.broffice.org/stable/2.3.0/BrOo_2.3.0_LinuxIntel_install_pt-BR_deb.tar.gz
tar -xzvf BrOo_2.3.0_LinuxIntel_install_pt-BR_deb.tar.gz


apt-get -y remove openoffice*

cd OOG680_m5_native_packed-1_pt-BR.9221/DEBS

dpkg -i broffice.org-base_2.3.0-5_i386.deb \
broffice.org-core01_2.3.0-5_i386.deb \
broffice.org-core02_2.3.0-5_i386.deb \
broffice.org-core03_2.3.0-5_i386.deb \
broffice.org-core03u_2.3.0-5_i386.deb \
broffice.org-core04_2.3.0-5_i386.deb \
broffice.org-core04u_2.3.0-5_i386.deb \
broffice.org-core05_2.3.0-5_i386.deb \
broffice.org-core05u_2.3.0-5_i386.deb \
broffice.org-core06_2.3.0-5_i386.deb \
broffice.org-core07_2.3.0-5_i386.deb \
broffice.org-core08_2.3.0-5_i386.deb \
broffice.org-core09_2.3.0-5_i386.deb \
broffice.org-calc_2.3.0-5_i386.deb \
broffice.org-draw_2.3.0-5_i386.deb \
broffice.org-emailmerge_2.3.0-5_i386.deb \
broffice.org-graphicfilter_2.3.0-5_i386.deb \
broffice.org-impress_2.3.0-5_i386.deb \
broffice.org-javafilter_2.3.0-5_i386.deb \
broffice.org-math_2.3.0-5_i386.deb \
broffice.org-pyuno_2.3.0-5_i386.deb \
broffice.org-testtool_2.3.0-5_i386.deb \
broffice.org-writer_2.3.0-5_i386.deb \
broffice.org-xsltfilter_2.3.0-5_i386.deb


dpkg -i desktop-integration/broffice.org-debian-menus_2.3-9215_all.deb
dpkg -i broffice.org-gnome-integration_2.3.0-5_i386.deb


echo $RMOD_NAME Finibashed...

##Logs
echo $RMOD_NAME-$RMOD_VERSION | tee -a /usr/share/zaitanlogs
/usr/lib/zaitan/modulo/mod-logs
##

exit 0

